#!/bin/bash

container_name="note-book-api"


if [[ "$(sudo docker ps -aq -f name=$container_name)" ]]; then
    echo "skip create:""$container_name"
else
  sudo docker run --name "$container_name" -v "$PWD"/../app:/app -w /app -p 8000:8000 rust-nightly:latest /root/.cargo/bin/cargo run
fi
